package com.common.exception;


import org.apache.log4j.Logger;


public class DAOException extends RuntimeException{

	private static final long serialVersionUID = 1L;
	private Logger log = null;

	@SuppressWarnings({ "rawtypes" })
	public DAOException(Class clazz, String message) {
		super(message);
		log = Logger.getLogger(clazz);
		log.error(message);
	}
	
	@SuppressWarnings({ "rawtypes" })
	public DAOException(Class clazz, Throwable throwable) {
		super(throwable);
		log = Logger.getLogger(clazz);
		log.error(throwable.getMessage());
	}
}
